


$(document).ready(function(){
	var id=getvl("id");
	getUserDetail(id);
});


/*
 * 获取用户详情
 */
function getUserDetail(id){
	
    $.ajax({
        url:  urlcore + "/api/appFeedback/selectappfeedback_Detail?id="+id,
  			type: "get",
			dataType: 'json',
			contentType: "application/json;charset=utf-8",
			success: function(data) {
				if(data.success == true) {
					var da = data.data;
					var Type = '';
					if(da.type==1) {
						Type="认证";
					}else if(da.type==2){
						Type="借贷";
					}else if(da.type==3){
						Type="还款";
					}else if(da.type==4){
						Type="体验与界面";
					}else if(da.type==6){
						Type="其他";
					}
					var pic_urlUrl = da.imgUrl;
					var imgStr1 = '';
					if(pic_urlUrl != null && da.pic_urlUrl != '') {
						var imgarr = pic_urlUrl.split("***");
						$.each(imgarr, function(index, value) {
							imgStr1 +=
								'<div style="position:relative;width:250px;height:250px;float:left;" display="block">' +
								'	<span onclick="removeStrHtml(this)" style="position:absolute;top:10px;right:10px;font-size:20px;color:#f00;" class="glyphicon glyphicon-trash" aria-hidden="true">' +
								'	</span>' +
								'	<img style="padding: 5px 5px 5px 5px;" width="250px" height="250px" src="' + value + '">' +
								'</div>';
						});
					}
					$('#real_name').html(da.user.realName);
					$('#phone').html(da.phone);
					$('#gmt_datetime').html(da.gmtDatetime);
					$('#upt_datetime').html(da.uptDatetime);
					$('#type').html(Type);
					$('#content').html(da.content);
					$('#img_url').html(imgStr1);
					
					//$('#img_url').html(imgStr1);
				}
			},
			error: function() {
				/* Act on the event */
				alert("error");
			}
		});

}